// Package day_03_linklist link_list
// @Title day_03_linklist
// @Description
// @Author  == 琳琳也叫王木木 ==  2021/8/30 17:20
// @Create  2021/8/30 17:20
package day_03_linklist

import "fmt"

type Node struct {
	Val    int
	Next   *Node
	Random *Node
}

type ListNode struct {
	Val  int
	Next *ListNode
}

// ShowListNode 打印ListNode类型的链表
func ShowListNode(head *ListNode) {
	var ans []int
	for head != nil {
		ans = append(ans, head.Val)
		head = head.Next
	}
	fmt.Println(ans)
}
